home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Mac OS 8.5 Updaters / RealPC⁄Soft Windows / SoftWindows / SoftWindows Upgrade Disk / INSIGNIA / W95BATCH.BAT < prev    next >
Encoding:
DOS Batch File  |  1998-08-24  |  3.0 KB  |  99 lines

  1. rem [
  2. rem    Name:        u.w95batch.bat
  3. rem
  4. rem    Derived from:    (original)
  5. rem
  6. rem    Author:        David Lillie
  7. rem
  8. rem    Created on:    Sep 1996
  9. rem
  10. rem    Sccs ID:    @(#)u.w95batch.bat    1.23 10/13/97
  11. rem
  12. rem    Coding Stds:    
  13. rem
  14. rem    Purpose:    Windows 95 batch file for updating SoftWindows and
  15. rem            SoftPC Turbo. This file triggers the process of
  16. rem            updating Windows 95 with the Insignia drivers and
  17. rem            proceeds to patch the Windows 95 drivers. It runs
  18. rem            before Windows 95 has booted.
  19. rem
  20. rem    Parameters:    1    host OS type i.e. "mac" or "unix"
  21. rem            2    new serial number (8 hex digits)
  22. rem            3    old serial number (8 hex digits)
  23. rem            4    Host System name
  24. rem            5    Host System release
  25. rem            6    Host System version
  26. rem            7    Host System hardware type
  27. rem            8       Intel OS; must be one of: "win95", "win98".
  28. rem
  29. rem    Copyright 1997 Insignia Solutions PLC. All rights reserved.
  30. rem ]
  31.  
  32.  
  33. echo Updating your configuration. Please wait...
  34.  
  35. rem  Determine whether this is a new copy of Windows or an upgrade.
  36. rem  A new copy of Windows is identified by:
  37. rem    1. new clean disk - serial no. = F0xxxxxx
  38. rem    2. user installed Windows over DOS - serial no. = F[4-F]xx[0-1]xxx
  39.  
  40. ibatch majorVer = 0x%3 ">>" 24     #04lx
  41. ibatch os       = 0x%3 "&"  0xf000 #06lx
  42. echo  %0: majorVer=%majorVer%  os=%os%            >>c:\insignia\up.log
  43. itest %majorVer% "==" 0xf0
  44. if errorlevel 1 goto newWin
  45. itest %majorVer% ">=" 0xf4
  46. if errorlevel 1 itest %os% "<=" 0x1000
  47. if errorlevel 1 goto newWin
  48.  
  49. echo Upgrading a previously-used copy of Windows.    >>c:\insignia\up.log
  50.  
  51. rem  Upgrade Insignia WinSock DLLs, but don't touch MS versions.
  52. call updatins winsock.dll c:\windows
  53. call updatins wsock32.dll c:\windows\system
  54. goto allWin
  55.  
  56. :newWin
  57. echo Upgrading a new copy of Windows.            >>c:\insignia\up.log
  58.  
  59. rem  Use the Insignia WinSock DLLs by default.
  60. copy /y /b c:\insignia\winsock.dll c:\windows        >>c:\insignia\up.log
  61. copy /y /b c:\insignia\wsock32.dll c:\windows\system    >>c:\insignia\up.log
  62. goto allWin
  63.  
  64. :allWin
  65. set majorVer=
  66. set os=
  67.  
  68.  
  69. REM Save and patch GDI.EXE
  70. call patchone gdi.exe c:\windows\system
  71.  
  72. REM Save and patch GDI32.DLL, but not on Mac or DEC Alpha
  73. if "%1" == "mac" goto no_gdi32
  74. if "%1" == "unix" if "%4" == "OSF1" goto no_gdi32
  75. if not "%8" == "win98" call patchone gdi32.dll c:\windows\system
  76. :no_gdi32
  77.  
  78. REM Save and patch KERNEL32.DLL
  79. if not "%8" == "win98" call patchone kernel32.dll c:\windows\system
  80.  
  81. REM Save and patch IOS.VXD
  82. if exist c:\windows\system\vmm32\ios.vxd  call patchone ios.vxd c:\windows\system\vmm32
  83.  
  84. REM  Patch VMM32.VXD now if we are upgrading Windows 95 (including SW95 1.0),
  85. REM  but delay it if Windows 95 is being installed on RealPC.
  86. call vmmpatch old %2 %3 %1
  87.  
  88. win31lic /v /sc:\windows\system c:\insignia\win95dos.ugd    >>c:\insignia\up.log
  89.  
  90. rem  Update the registry.
  91.  
  92. rem  Registry deletions.
  93. call delreg %1 %2 %3 %4 %5 %6 %7
  94.  
  95. rem  Registry additions: always use the standard regedit tool.
  96. regedit d:\win95.reg    >>c:\insignia\up.log
  97. echo.>>c:\insignia\up.log
  98.  
  99.